package com.oowoo.rabbitmqserver2000.controller;

import com.oowoo.rabbitmqserver2000.service.SendService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class TestContoller {
    @Autowired
    private SendService sendService;

    @RequestMapping("/sendTest")
    public void sendTest(){
        sendService.send();
        log.info("触发mq消息发送");
    }
}
